home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dirut
/
dosdir21.zip
/
EXAMPLE2.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-21
|
470b
|
22 lines
/*
* EXAMPLE2.C - Example program uses dosdir directory functions
*
* Modification history:
* V1.0 9-Jun-94, J Mathews Original version.
*/
#include "dosdir.h"
void main( int argc, char** argv)
{
dd_ffblk fb;
char *mask = (argc == 1) ? ALL_FILES_MASK : argv[1];
printf("Directory of %s\n", mask);
if (!dd_findfirst( mask, &fb, DD_DIREC ))
{
do {
printf("%s\n", fb.dd_name);
} while (!dd_findnext(&fb));
}
}